package Review.Thread;

class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("小野猫过来找我要亲吻");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
public class Demo1 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new MyThread();
        t.start();
        while (true){
            System.out.println("我抱着深情对视并开始亲吻她");
            Thread.sleep(1000);
        }
    }
}
